package com.tender.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.tender.api.DubboHelloTestService;

@RestController
public class ConsumerController {


    @Reference(version = "1.0.0")
    private DubboHelloTestService dubboHelloService;

    @GetMapping("/hello")
    public String hello() {
        // return "9999";
        return dubboHelloService.hello("tender").toString();
    }

}
